package com.example.gravitysituation;

// Stores information about a single component of 
// a given circuit
public class Component {

	private String m_componentType;
	private double m_componentVal;
	private double m_componentCurrent;
	
	// Constructors
	public Component(String componentType, double componentVal) {
		m_componentType = componentType;
		m_componentVal = componentVal;
		m_componentCurrent = 0;
	}
	
	public Component(){
		m_componentType = "";
		m_componentVal = 0;
		m_componentCurrent = 0;
	}
	
	// Setter Functions
	public void setType(String componentType){
		m_componentType = componentType;
	}
	
	public void setValue(double componentVal){
		m_componentVal = componentVal;
	}
	
	public void setCurrent(double current){
		m_componentCurrent = current;
	}
	
	// Getter Functions
	public String getType(){
		return m_componentType;
	}
	
	public double getValue(){
		return m_componentVal;
	}
	
	public double getCurrent(){
		return m_componentCurrent;		
	}

}
